package com.example.frameboot.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author zhujy7@centaline.com.cn
 * @description 不带返回数据的
 * @date 2020/1/8 15:19
 */
@AllArgsConstructor
@Getter
@Setter
@ToString
public class BaseResp {
    @ApiModelProperty(value = "状态码，200表示成功，其他错误", example = "200", position = 1)
    private Integer code;

    @ApiModelProperty(value = "消息描述", example = "成功", position = 2)
    private String message;

    public BaseResp() {
        code = HttpStatusEnum.SUCCESS.getCode();
        message = HttpStatusEnum.SUCCESS.getMessage();
    }
}
